package com.yenlien.traceyun.control.entity;


import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by LiuSha on 2020/6/10.
 * 消息表
 */
@Entity
@Table(name = "t_message")
public class Message extends BaseEntity {
    @Column
    private String title;//标题
    @Column
    private String sendUserId;//发送用户id
    @Column
    private String sendUser;//发送用户
    @Column
    private String userId;//接收用户id
    @Column
    private String type;//（0.未读，1。已读）
    @Column
    private String next;//下一步操作
    @Column
    private int state;//是否读取（0:未发送，1，已发送）
    @Column(length = 1000)
    private String content;//内容

    @Column(name = "createtime")
    private Date createtime;

    @Column(name = "company_id")
    private String companyId;

    @Column(name = "app_name")
    private String appName;

    @Column(name = "pid")
    private String pid;         //同一个主题的消息pid相同

    @Column(name = "company_name")
    private String companyName;

    public String getSendUser() {
        return sendUser;
    }

    public void setSendUser(String sendUser) {
        this.sendUser = sendUser;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNext() {
        return next;
    }

    public void setNext(String next) {
        this.next = next;
    }

    public String getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(String sendUserId) {
        this.sendUserId = sendUserId;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
}
